<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('采购清单详情')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" th:object="${purchaseList}">
            <div class="form-group">
                <label class="col-sm-3 control-label">采购清单ID：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{purchaseListId}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合同编号：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{contractCode}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">供应商名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{supplierName}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">产品名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{productName}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <div class="input-group">
                        <span class="input-group-addon">￥</span>
                        <input class="form-control" th:field="*{totalAmount}" type="text" readonly>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">定货数量：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{orderQuantity}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">订货人：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{purchaser}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合同日期：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${#dates.format(purchaseList.contractDate, 'yyyy-MM-dd')}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">付款日期：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${#dates.format(purchaseList.paymentDate, 'yyyy-MM-dd')}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">到货日期：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${#dates.format(purchaseList.arrivalDate, 'yyyy-MM-dd')}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否含税：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${purchaseList.isTaxIncluded == '1' ? '是' : '否'}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否到货：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${purchaseList.isDelivered == '1' ? '已到货' : '未到货'}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发票情况：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${purchaseList.invoiceStatus == '0' or purchaseList.invoiceStatus == '未开票' ? '未开票' : (purchaseList.invoiceStatus == '1' or purchaseList.invoiceStatus == '已开票' ? '已开票' : (purchaseList.invoiceStatus == '2' or purchaseList.invoiceStatus == '部分开票' ? '部分开票' : purchaseList.invoiceStatus))}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">用途：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{usagePurpose}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">货期：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{deliveryPeriod}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{status}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${#dates.format(purchaseList.createTime, 'yyyy-MM-dd HH:mm:ss')}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建人：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{createBy}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">更新时间：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:value="${#dates.format(purchaseList.updateTime, 'yyyy-MM-dd HH:mm:ss')}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">更新人：</label>
                <div class="col-sm-8">
                    <input class="form-control" th:field="*{updateBy}" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea class="form-control" th:field="*{remark}" rows="3" readonly></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
</body>
</html>